<?php echo $this->partial('partials/admin.phtml'); ?>
<?php
$result = "<table><tr><th>UserName</th><th>First Name</th><th>Last Name</th><th>E-Mail</th><th>Status</th><th>Action</th></tr>";
foreach ($this->data as $user) {
    $result.="<tr><td>".$user['username']."</td><td>".$user['fname']."</td><td>".$user['lname']."</td><td>".$user['email']."</td><td>".$user['status']."</td>
<td><a href='".$this->baseUrl()."/admin/useredit/id/$user[id]' style='text-decoration: none'>Edit</a></td><td><a href='".$this->baseUrl()."/admin/userdelete/id/$user[id]' style='text-decoration: none'>Delete</a></td></tr>";
}
$result .="</table>";
echo $result;
echo "<a href='".$this->baseUrl()."/admin/usernew' style='text-decoration: none'>New User</a>";
echo $this->paginationControl($this->data,
        'Sliding',
        'partials/pagination-control.phtml');
